<template>
    <div id="lunbo_all">
        <div class="lunbo">
            <span class="lunbo_all_title">今日热门</span>
            <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
                <van-swipe-item><img src="../img/lunbo1.png" alt=""></van-swipe-item>
                <van-swipe-item><img src="../img/lunbo2.png" alt=""></van-swipe-item>
                <van-swipe-item><img src="../img/lunbo3.png" alt=""></van-swipe-item>
            </van-swipe>
        </div>
    </div>
</template>

<style>
.lunbo_all{
    height: 40vh;
    display: block;
    position: relative;
}
.lunbo {
    display: block;
    height: 50vh;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.lunbo_all_title {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-left: 8vw;
    width: 24vw;
    display: block;
    position: relative;
    left: 0;
}

.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: transparent;
    position: relative;
}

.van-swipe-item img {
    object-fit: cover;
    height: 190px;
    width: 100v;
    background-repeat: no-repeat;
}
</style>

<script>
import Vue from 'vue';
import { Swipe, SwipeItem } from 'vant';

Vue.use(Swipe);
Vue.use(SwipeItem);

export default {
    name: "lunboView",
    data() {
        return {
            lunbo_list: [],
            msg: 'hello',
        }
    },
}
</script>